package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-09-14  20:43
 */
public class Test4 {
    public static void main(String[] args) {
        int i = 2;
        int sum = 0;
        while(i <= 100) {
            sum += i;
            i += 2;
        }
        System.out.println(sum);
    }
}
